package cn.stylefeng.guns.modular.cb.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.cb.entity.CbCollege;
import cn.stylefeng.guns.modular.cb.model.params.CbCollegeParam;
import cn.stylefeng.guns.modular.cb.model.result.CbCollegeResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wj
 * @since 2021-01-06
 */
public interface CbCollegeService extends IService<CbCollege> {

    /**
     * 新增
     *
     * @author wj
     * @Date 2021-01-06
     */
    void add(CbCollegeParam param);

    /**
     * 删除
     *
     * @author wj
     * @Date 2021-01-06
     */
    void delete(CbCollegeParam param);

    /**
     * 更新
     *
     * @author wj
     * @Date 2021-01-06
     */
    void update(CbCollegeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
    CbCollegeResult findBySpec(CbCollegeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<CbCollegeResult> findListBySpec(CbCollegeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-06
     */
     LayuiPageInfo findPageBySpec(CbCollegeParam param);

}
